package com.example.demo.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
/*这里是实体层，存放业务对象和被操作的类
* 这里是一个“文章”对象*/
@Data
//将这个类继承于序列化接口，使其在后续可被redics存储
//序列化就是将对象变为字节流形式
public class Articleinfo implements Serializable {
    private int id;
    private String title;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private int uid;
    private int rcount;
    private int state;
}